package com.adong.test;


import com.adong.config.PropertiesValueConfig;
import com.adong.pojo.User;
import org.junit.Test;
import org.springframework.context.ApplicationContext;
import org.springframework.context.annotation.AnnotationConfigApplicationContext;

/**
 * @author adong
 */
public class PropertiesValueDemo {
    @Test
    public void annotationDemo() {
        ApplicationContext applicationContext = new AnnotationConfigApplicationContext(PropertiesValueConfig.class);
        User user = (User) applicationContext.getBean("user", User.class);
        System.out.println(user);
    }

}
